import React from 'react'

let num = 8
export default function Test() {
  return (
    <div>
      <button onClick={() => (num += 8)}>+8</button>
      <button onClick={() => console.log(num)}>输出 num</button>
    </div>
  )
}
